<!DOCTYPE html>
<html>
<#include "../head.html">
    <body>
    <div class="mc">
        <div class="mc-l">
            <!--左侧导航---{-->
            <div id="navPanelContainer">
                <div class="system-logo cd"></div>
                <!--管理员信息---{-->
                <#include "../adminInfo.html">
                    <!--管理员信息---}-->
                    <div class="nav-wrap">
                        <#include "left.html">
                    </div>
            </div>
            <!--左侧导航---}-->
        </div>
        <div class="mc-m">
            <div class="navToggle"></div>
        </div>
        <div class="mc-r">
            <!--顶部导航---{-->
            <#include "../topNav.html">
                <!--顶部导航---}-->

                <!--面包屑导航---{-->
                <#assign moduleName="修改角色">
                    <#include "banner.html">
                        <!--面包屑导航---}-->

                        <!--工具栏--{-->
                        <div id="toolbar" class="clearfix">
                            <div class="toolbor-module search">
                                <input type="button" class="input-button return" value="返回" onclick="location.href='/admin/api/querySource.html?page=${page}'">
                            </div>
                        </div>
                        <!--工具栏--}-->

                        <div id="main" class="clearfix">
                            <form name="form1" method="post" action="/admin/api/modifySource.html" >
                                <div class="valBox w750">
                                    <div class="top">
                                        <strong>修改渠道商信息</strong>
                                    </div>
                                    <div class="val clearfix">
                                        <ul>
                                            <li>
                                                <div class="title">渠道商代码：</div>
                                                <div class="v">
                                                    <input type="text" name="code" style="width:250px;" value="${sourceConfig.code}"/>
                                                </div>
                                            </li>
                                            <li>
                                                <div class="title">渠道商名称：</div>
                                                <div class="v">
                                                    <input type="text" name="name" style="width:250px;" value="${sourceConfig.name}"/>
                                                </div>
                                            </li>
                                            <li>
                                                <div class="title">渠道类型：</div>
                                                <div class="v">
                                                    <input type="radio" name="type" value="1" <#if sourceConfig.type == 1>checked=true</#if>>IOS
                                                    <input type="radio" name="type" value="2" <#if sourceConfig.type == 2>checked=true</#if>>Android
                                                </div>
                                            </li>
                                            <li>
                                                <div class="title">渠道类别：</div>
                                                <div class="v s_writeContent">
                                                    <input name="category" value="" type="text">
                                                </div>
                                            </li>

                                            <li>
                                                <div class="title">渠道用户：</div>
                                                <div class="v">
                                                    <select name="userid" id="user" style="height:25px;width:100px">
                                                        <#if users ??>
                                                            <#list users as user>
                                                                <option value="${user.userId}"
                                                                <#if sourceConfig.systemUser??>
                                                                    <#if user.userId == sourceConfig.systemUser.userId> selected</#if>
                                                                </#if>
                                                                >${user.username}</option>
                                                            </#list>
                                                        </#if>
                                                    </select>
                                                </div>
                                            </li>
                                        </ul>
                                        <div class="other">
                                            <input type="hidden"  name="actionType" value="modify" />
                                            <input type="hidden"  name="page" value="${page}" />
                                            <input type="hidden"  name="id" value=${id}>
                                            <input type="submit"  name="reset" value="修改" class="input-button confirm"/>
                                        </div>
                                    </div>
                                </div>

                            </form>

                        </div>
        </div>
    </div>
    <div class="mc-b">
        <#include "../foot.html">
    </div>
    <#include "../jsPage.html">
    </body>
</html>